package org.example.pcbcircuitboard.service;

import org.example.pcbcircuitboard.dao.PCBMapper;
import org.example.pcbcircuitboard.pojo.CenterBottomPojo;
import org.example.pcbcircuitboard.pojo.LeftCenterPojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 可视乎数据服务
 */
@Service
public class VisualizationDataService {
    @Autowired
    private PCBMapper pcbMapper;
    /**
     * 获取左中
     * @param productName 产品名称
     * @return 左中数据
     */
    public List<LeftCenterPojo>  getLeftCenterData(String productName) {
        return pcbMapper.getLeftCenterData(productName);
    }
    /**
     * 获取中下
     * @return 中下数据
     */
    public List<CenterBottomPojo> getCenterBottomData() {
        return pcbMapper.getCenterBottomData();
    }
}
